/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconLockOn: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M512 96a224 224 0 0 1 224 224v64h32a96 96 0 0 1 95.84 90.368L864 480v352a96 96 0 0 1-96 96H256a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96h32v-64a224 224 0 0 1 216.32-223.872z m256 352H256a32 32 0 0 0-32 32v352a32 32 0 0 0 32 32h512a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32z m-160 160a32 32 0 0 1 3.744 63.776L608 672h-192a32 32 0 0 1-3.744-63.776L416 608h192zM512 160a160 160 0 0 0-160 160v64h320v-64a160 160 0 0 0-153.056-159.84z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconLockOn.defaultProps = {
  size: 18,
};

export default IconLockOn;
